#ifndef ENTITY_H
#define ENTITY_H

#include <QString>

struct EntityResult
{
    QString entityType;
    int curState;
    QString locktype;
    double result;
};

class Entity
{
public:
    Entity(QString entityType,int state, QString locktype,QString argName);
    EntityResult CheckState(QString attachName);
    double GetResult(){return m_dResult;};
    QString GetArgName(){return m_sArgName;};
    QString GetType(){return m_sEntityType;};
    QString GetLocktype(){return m_sLocktype;};
    int GetCurState(){return m_nState;};
private:
    QString m_sEntityType;
    int m_nState;
    QString m_sLocktype;
    QString m_sArgName;
    double m_dResult;
};

#endif // ENTITY_H
